//
//  ExchangeHistoryTableViewCell.m
//  CPICApp
//
//  Created by sinosoft on 13-3-14.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import "ExchangeHistoryTableViewCell.h"

@implementation ExchangeHistoryTableViewCell
@synthesize lblNameTag,lblGiftName,lblIntegralTag,lblGiftintegral,lblTimeTag,lblExchangeTime,lblStatusTag,lblStatus;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        lblNameTag=[[[UILabel alloc]initWithFrame:CGRectMake(6, 0, 26, 21)]autorelease];
        lblGiftName=[[[UILabel alloc]initWithFrame:CGRectMake(40, 0, 145, 23)]autorelease];
        lblIntegralTag=[[[UILabel alloc]initWithFrame:CGRectMake(193, 0, 49, 21)]autorelease];
        lblGiftintegral=[[[UILabel alloc]initWithFrame:CGRectMake(256, 1, 56, 21)]autorelease];
        lblTimeTag=[[[UILabel alloc]initWithFrame:CGRectMake(6, 31, 26, 21)]autorelease];
        lblExchangeTime=[[[UILabel alloc]initWithFrame:CGRectMake(40, 31, 135, 24)]autorelease];
        lblStatusTag=[[[UILabel alloc]initWithFrame:CGRectMake(193, 29, 33, 22)]autorelease];
        lblStatus=[[[UILabel alloc]initWithFrame:CGRectMake(250, 29, 62, 22)]autorelease];
        
        [lblNameTag setBackgroundColor:[UIColor clearColor]];
        [lblGiftName setBackgroundColor:[UIColor clearColor]];
        [lblIntegralTag setBackgroundColor:[UIColor clearColor]];
        [lblGiftintegral setBackgroundColor:[UIColor clearColor]];
        [lblTimeTag setBackgroundColor:[UIColor clearColor]];
        [lblExchangeTime setBackgroundColor:[UIColor clearColor]];
        [lblStatusTag setBackgroundColor:[UIColor clearColor]];
        [lblStatus setBackgroundColor:[UIColor clearColor]];
        
        lblNameTag.font=[UIFont systemFontOfSize:11.0];
        lblGiftName.font=[UIFont systemFontOfSize:14.0];
        lblIntegralTag.font=[UIFont systemFontOfSize:11.0];
        lblGiftintegral.font=[UIFont systemFontOfSize:14.0];
        lblTimeTag.font=[UIFont systemFontOfSize:11.0];
        lblExchangeTime.font=[UIFont systemFontOfSize:14.0];
        lblStatusTag.font=[UIFont systemFontOfSize:11.0];
        lblStatus.font=[UIFont systemFontOfSize:14.0];
        
        lblNameTag.text=@"礼品:";
        lblIntegralTag.text=@"所用积分:";
        lblTimeTag.text=@"日期:";
        //lblStatusTag.text=@"状态:";
        
        [self.contentView addSubview:lblNameTag];
        [self.contentView addSubview:lblGiftName];
        [self.contentView addSubview:lblIntegralTag];
        [self.contentView addSubview:lblGiftintegral];
        [self.contentView addSubview:lblTimeTag];
        [self.contentView addSubview:lblExchangeTime];
        [self.contentView addSubview:lblStatusTag];
        [self.contentView addSubview:lblStatus];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
